package com.woniu.common.enums;

public enum  ExceptionCode {

    INVALID_KAPTCHA(100100,"验证码无效"),
    INVALID_USERNAME_PASSWORD(100101,"用户名或密码错误"),
    JSON_CONVERTION(100102,"JSON转换异常"),
    PLAY_TIME_CONFILICTION(100103,"排片时间有冲突"),
    CELLPHONE_REGISTERED(100104,"手机号已经注册"),
    CELLPHONE_INVALID(100105,"手机号不正确"),
    PASSWORD_INVALID(100106,"密码不符合要求"),
    ADMIN_LOGIN_NOT_ALLOWED(100107,"管理员无法从前端登录"),
    ORDER_FAIL(100108,"下订单失败，座位已经被预定"),
    TOTAL_PAY_INCORRECT(100109,"订单金额异常"),
    ORDER_STATUS_INCORRECT(100110,"订单状态异常"),

    ;


    private Integer code;
    private String msg;

    ExceptionCode(int code, String msg) {
        this.code=code;
        this.msg=msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
